<?php $this->jQuery()->enable()?>
<?php $this->JQuery()->javascriptCaptureStart()?>
jQuery(function() {
	$j('#container').attr('class', 'saved_ads');    
});
<?php $this->JQuery()->javascriptCaptureEnd()?>
<?php
$bookmark = Model_Bookmark::getList();
echo "COUNT: ".$bookmark->count()."<br/>";
?>

<?php if ($bookmark !== false):?>
    <?php
        $count = $bookmark->count();
    ?>
    <div class="page" id="page_history_bookmark" rel="2">
        <?php for ($i = 0; $i < ceil($count/6); $i++):?>
            <a class="yourac_page yourac_page_bookmark" href="#" rel="<?php echo $i?>"><?php echo $i+1?></a>
        <?php endfor;?>
    </div>
<?php endif;?>
<section class="serp">
    <h2>Saved Ads<span>1-10 / 100 Ads, Page 1/10</span></h2>
    <div class="nav top">
    <a href="#" class="prev"><span>&lt;</span>PREV</a>
    <form><select><option>Sort By...</option><option>Relevance</option><option>Highest Price</option><option>Lowest Price</option></select></form>
    <a href="#" class="next">NEXT<span>&gt;</span></a>
    </div>
	<!--form>
	<fieldset-->
	<div class="manage_tool">
	<!--div class="checkbox">
	<input type="checkbox">
	</div>
	<a href="#" class="select_all">Select All</a>
	<a href="#" class="delete">Delete</a-->
	<a href="#" class="remove_all">Remove All Saved Ads</a>
	</div>
    <ul>
    <li><!--div class="checkbox"><input type="checkbox"></div--><a href="#"><figure><img src="images/samplePic.jpg"></figure><h1>Jaguar XJS V12 6.0 1994 Jaguar XJS V12 6.0 1994 Jaguar XJS V12 6.0 1994 Jaguar XJS V12 6.0 1994 Jaguar XJS V12 6.0 1994 Jaguar XJS V12 6.0 1994 </h1><dl class="location"><dd>Causeway Bay</dd></dl><dl class="date"><dd>12 Jan 2011</dd></dl><dl class="price"><dd>HKD 18,000</dd></dl><span>&gt;</span></a><p class="action"><a class="remove" href="#">Remove</a></p></li>
    <li><!--div class="checkbox"><input type="checkbox"></div--><a href="#"><figure><img src="images/samplePic.jpg"></figure><h1>Jaguar XJS V12 6.0 1994</h1><dl class="location"><dd>Causeway Bay</dd></dl><dl class="date"><dd>12 Jan 2011</dd></dl><dl class="price"><dd>HKD 18,000</dd></dl><span>&gt;</span></a><p class="action"><a class="remove" href="#">Remove</a></p></li>
    <li><!--div class="checkbox"><input type="checkbox"></div--><a href="#"><figure><img src="images/samplePic.jpg"></figure><h1>Jaguar XJS V12 6.0 1994</h1><dl class="location"><dd>Causeway Bay</dd></dl><dl class="date"><dd>12 Jan 2011</dd></dl><dl class="price"><dd>HKD 18,000</dd></dl><span>&gt;</span></a><p class="action"><a class="remove" href="#">Remove</a></p></li>
    <li><!--div class="checkbox"><input type="checkbox"></div--><a href="#"><figure><img src="images/samplePic.jpg"></figure><h1>Jaguar XJS V12 6.0 1994</h1><dl class="location"><dd>Causeway Bay</dd></dl><dl class="date"><dd>12 Jan 2011</dd></dl><dl class="price"><dd>HKD 18,000</dd></dl><span>&gt;</span></a><p class="action"><a class="remove" href="#">Remove</a></p></li>
    <li><!--div class="checkbox"><input type="checkbox"></div--><a href="#"><figure><img src="images/samplePic.jpg"></figure><h1>Jaguar XJS V12 6.0 1994</h1><dl class="location"><dd>Causeway Bay</dd></dl><dl class="date"><dd>12 Jan 2011</dd></dl><dl class="price"><dd>HKD 18,000</dd></dl><span>&gt;</span></a><p class="action"><a class="remove" href="#">Remove</a></p></li>
    <li><!--div class="checkbox"><input type="checkbox"></div--><a href="#"><figure><img src="images/samplePic.jpg"></figure><h1>Jaguar XJS V12 6.0 1994</h1><dl class="location"><dd>Causeway Bay</dd></dl><dl class="date"><dd>12 Jan 2011</dd></dl><dl class="price"><dd>HKD 18,000</dd></dl><span>&gt;</span></a><p class="action"><a class="remove" href="#">Remove</a></p></li>
    <li><!--div class="checkbox"><input type="checkbox"></div--><a href="#"><figure><img src="images/samplePic.jpg"></figure><h1>Jaguar XJS V12 6.0 1994</h1><dl class="location"><dd>Causeway Bay</dd></dl><dl class="date"><dd>12 Jan 2011</dd></dl><dl class="price"><dd>HKD 18,000</dd></dl><span>&gt;</span></a><p class="action"><a class="remove" href="#">Remove</a></p></li>
    <li><!--div class="checkbox"><input type="checkbox"></div--><a href="#"><figure><img src="images/samplePic.jpg"></figure><h1>Jaguar XJS V12 6.0 1994</h1><dl class="location"><dd>Causeway Bay</dd></dl><dl class="date"><dd>12 Jan 2011</dd></dl><dl class="price"><dd>HKD 18,000</dd></dl><span>&gt;</span></a><p class="action"><a class="remove" href="#">Remove</a></p></li>
    <li><!--div class="checkbox"><input type="checkbox"></div--><a href="#"><figure><img src="images/samplePic.jpg"></figure><h1>Jaguar XJS V12 6.0 1994</h1><dl class="location"><dd>Causeway Bay</dd></dl><dl class="date"><dd>12 Jan 2011</dd></dl><dl class="price"><dd>HKD 18,000</dd></dl><span>&gt;</span></a><p class="action"><a class="remove" href="#">Remove</a></p></li>
    <li><!--div class="checkbox"><input type="checkbox"></div--><a href="#"><figure><img src="images/samplePic.jpg"></figure><h1>Jaguar XJS V12 6.0 1994</h1><dl class="location"><dd>Causeway Bay</dd></dl><dl class="date"><dd>12 Jan 2011</dd></dl><dl class="price"><dd>HKD 18,000</dd></dl><span>&gt;</span></a><p class="action"><a class="remove" href="#">Remove</a></p></li>
    </ul>
	<!--/fieldset>
	</form-->
    <div class="nav bottom">
    <a href="#" class="prev"><span>&lt;</span>PREV</a>
    <p>Page 1/100</p><a href="#" class="next">NEXT<span>&gt;</span></a>
    </div>
    </section>
    
    <?php echo $this->Partial('mobile/other.phtml', 'default'); ?>